#ifndef PROTOCOLS_H
#define PROTOCOLS_H

#define BROADCAST_ADDR  (0x00)

// 帧类别
#define     TI_SOH                  (0xE0)
#define     TI_BCSOH            (0xE1)

//命令帧
#define     TI_SAK                  (0xE2)
#define     TI_NORMAL          (0xE3)
#define     TI_ACK                  (0xE4)
#define     TI_NACK                 (0xE5)
#define     TI_OVER                 (0xE6)
#define     TI_OVERACK          (0xE7)

//单播信息帧的具体种类
#define     MSG_FIRE          (0x10)
#define     MSG_FEDBACK          (0x11)
#define     MSG_FAULT          (0x12)
#define     MSG_BLOCK          (0x13)
#define     MSG_BLOCK_CANCEL          (0x14)
#define     MSG_BUS_ALLOW          (0x15)
#define     MSG_BUS_FORBID          (0x16)
#define     MSG_REG_BGN          (0x17)
#define     MSG_REG_INF             (0X18)
#define     MSG_CFG_BGN             (0x19)
#define     MSG_CFG_INF               (0x1A)
#define     MSG_START                   (0x1B)
#define     MSG_STOP                  (0x1C)

// 广播信息帧的具体类型
#define     MSG_RESET                   (0x20)
#define     MSG_SelfCheckStart      (0x21)
#define     MSG_SelfCheckStop       (0x22)

#endif // PROTOCOLS_H
